[Webkit-unassigned] [Bug 160971] New: Align the innerText setter with the HTML spec and Gecko
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Aug 18 13:40:20 PDT 2016
https://bugs.webkit.org/show_bug.cgi?id=160971
Bug ID: 160971
Summary: Align the innerText setter with the HTML spec and
Gecko
Classification: Unclassified
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: HTML DOM
Assignee: webkit-unassigned at lists.webkit.org
Reporter: zcorpan at gmail.com
CC: cdumez at apple.com
See https://github.com/whatwg/html/issues/1679
WebKit throws for <br>.innerText = "x" etc, The spec and Gecko do not.
WebKit will update existing text node's data if element has just 1 text node.
The HTML spec and Gecko always replace with a new text node.
If the assigned value starts with a newline, WebKit/Chromium inserts an empty text node, the spec/Gecko/IE don't.
Spec at https://html.spec.whatwg.org/multipage/dom.html#the-innertext-idl-attribute
Tests at https://github.com/w3c/web-platform-tests/tree/master/innerText (these might get moved to html/ or something later)
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160818/6311ea97/attachment.html>
More information about the webkit-unassigned
mailing list