Skip to content

Instantly share code, notes, and snippets.

@enricopolanski
Created December 2, 2017 14:42
Show Gist options
  • Save enricopolanski/921db5e8ad39e2b06ac0a436181654e4 to your computer and use it in GitHub Desktop.
Save enricopolanski/921db5e8ad39e2b06ac0a436181654e4 to your computer and use it in GitHub Desktop.
> $("w\\:body").children().eq(2)
initialize {
'0':
{ type: 'tag',
name: 'w:p',
attribs:
{ 'w:rsidRPr': '008D7D78',
'w:rsidR': '00AA2A68',
'w:rsidP': '008D7D78',
'w:rsidRDefault': '00AA2A68',
'w14:paraId': '2F7A00AC',
'w14:textId': '77777777' },
children:
etc, etc
> $("w\\:body").children().eq(2).removeAttr("w\\:rsidR");
same as before
> $("w\\:body").children().eq(2)
initialize {
'0':
{ type: 'tag',
name: 'w:p',
attribs:
{ 'w:rsidRPr': '008D7D78',
'w:rsidR': '00AA2A68',
'w:rsidP': '008D7D78',
'w:rsidRDefault': '00AA2A68',
'w14:paraId': '2F7A00AC',
'w14:textId': '77777777' },
children:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment