Summary: | Attr nodes are not cloned properly | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Chris Dumez <cdumez> | ||||
Component: | DOM | Assignee: | Chris Dumez <cdumez> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | achristensen, dbates, esprehn+autocc, ews-watchlist, ggaren, kangil.han, koivisto, rniwa, webkit-bug-importer | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | WebKit Nightly Build | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
URL: | https://dom.spec.whatwg.org/#concept-node-clone | ||||||
Attachments: |
|
Description
Chris Dumez
2019-04-01 15:09:45 PDT
Created attachment 366428 [details]
Patch
Comment on attachment 366428 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=366428&action=review > Source/WebCore/dom/Document.cpp:992 > // FIXME: This will "Attr::normalize" child nodes of Attr. Should we remove this FIXME? Comment on attachment 366428 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=366428&action=review >> Source/WebCore/dom/Document.cpp:992 >> // FIXME: This will "Attr::normalize" child nodes of Attr. > > Should we remove this FIXME? Is it not valid anymore? (In reply to Chris Dumez from comment #3) > Comment on attachment 366428 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=366428&action=review > > >> Source/WebCore/dom/Document.cpp:992 > >> // FIXME: This will "Attr::normalize" child nodes of Attr. > > > > Should we remove this FIXME? > > Is it not valid anymore? There is no Attr::normalize anymore. This is about normalizing the text child nodes of Attr when we supported multiple child nodes for Attr: https://dom.spec.whatwg.org/#dom-node-normalize But that's totally irrelevant now since Attr isn't even a ContainerNode now. Committed r243734: <https://trac.webkit.org/changeset/243734> (In reply to Ryosuke Niwa from comment #4) > (In reply to Chris Dumez from comment #3) > > Comment on attachment 366428 [details] > > Patch > > > > View in context: > > https://bugs.webkit.org/attachment.cgi?id=366428&action=review > > > > >> Source/WebCore/dom/Document.cpp:992 > > >> // FIXME: This will "Attr::normalize" child nodes of Attr. > > > > > > Should we remove this FIXME? > > > > Is it not valid anymore? > > There is no Attr::normalize anymore. This is about normalizing the text > child nodes of Attr when we supported multiple child nodes for Attr: > https://dom.spec.whatwg.org/#dom-node-normalize > > But that's totally irrelevant now since Attr isn't even a ContainerNode now. Oh right. Fixed before landing, thanks. |