Bug 19837 - DomNode::normalize handling of text nodes
Summary: DomNode::normalize handling of text nodes
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: DOM (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Anne
QA Contact: public-webapps-bugzilla
Depends on:
Reported: 2012-11-03 01:35 UTC by svitlant
Modified: 2012-11-21 18:55 UTC (History)
3 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description svitlant 2012-11-03 01:35:14 UTC

In the previous version of the specification (http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-normalize) DomNode::normalize is explicitly said to remove empty text nodes. There is no mention of how the empty nodes need to be handled in the new specification (http://dom.spec.whatwg.org/#dom-node-normalize).

In particular, I would really appreciate for a note on how the following situation should be handled: an empty text node (text1) followed by a non-empty text node (text2). According to the new specification, the content will be concatenated in text1. However, this does not correspond to the behavior of major browsers: major browsers detach text1 and leave text2 unchanged.

Comment 1 Ms2ger 2012-11-03 09:01:29 UTC
Thanks for the bug report, Svitlana. I uploaded a test: <http://dvcs.w3.org/hg/webapps/rev/f5262db28508>.
Comment 2 Anne 2012-11-09 15:47:19 UTC

svitlant, is your name in the Acknowledgments section already? (I'm not aware of your name or have forgotten.) If not, could you please give me either your name or preferred nick for that section?

And thanks for this report, much appreciated!
Comment 4 Anne 2012-11-21 18:55:07 UTC
Closing this as it was fixed. svitlant, your desired name for the acknowledgments would still be appreciated!