It's not safe to use setAttributeNS because it fires a bunch of events. Of course, the element had not been inserted in to the document at the point so we're not firing events. Nonetheless, it's very error prone.
Created attachment 154525 [details] Refactoring
Comment on attachment 154525 [details] Refactoring View in context: https://bugs.webkit.org/attachment.cgi?id=154525&action=review > Source/WebCore/ChangeLog:12 > + There should be no user observable behavior change. Actually, I lied. This will fix the bug 92310... merging the bugs.
*** This bug has been marked as a duplicate of bug 92310 ***
Mass moving XML DOM bugs to the "DOM" Component.