[Webkit-unassigned] [Bug 21108] Impossible to add an attribute to a node without attributes

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 23 12:55:15 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=21108


Timothy Hatcher <timothy at hatcher.name> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #33355|review?                     |review-
               Flag|                            |




--- Comment #9 from Timothy Hatcher <timothy at hatcher.name>  2009-07-23 12:55:14 PDT ---
(From update of attachment 33355)

> +            var nodeName = tag.textContent.match(/^<(.*?)>$/)[1];
> +            tag.textContent = '';
> +            tag.appendChild(document.createTextNode('<'+nodeName));
> +            tag.appendChild(node);
> +            tag.appendChild(document.createTextNode('>'));

Double quote strings and spaces around "+".

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list