Skip to content

Allow detection of empty elements - Issue #22 - #23

Merged
robrighter merged 1 commit into
robrighter:masterfrom
kruncher:master
Sep 14, 2012
Merged

robrighter merged 1 commit into
robrighter:masterfrom
kruncher:master

Conversation

@kruncher

Copy link
Copy Markdown
Contributor

I have added an additional parameter to callbacks onBeginElementNS and onEndElementNS so that empty elements can be detected when parsing.

For example:

<list>
    <item><item>
    <item />
</list>

The first item is called as follows:

onBeginElementNS('item', {}, null, null, [])
onEndElementNS('item', null, null)

The second item is called as follows:

onBeginElementNS('item', {}, null, null, [], true)
onEndElementNS('item', null, null, true)

robrighter added a commit that referenced this pull request Sep 14, 2012
Allow detection of empty elements - Issue #22
@robrighter
robrighter merged commit be66f7d into robrighter:master Sep 14, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants