[Webkit-unassigned] [Bug 6648] Safari strips namespace prefix when using setAttribute(), but should treat it as part of name

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Wed Mar 8 09:01:42 PST 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=6648


darin at apple.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED




------- Comment #17 from darin at apple.com  2006-03-08 09:01 PDT -------
(In reply to comment #16)
> The getAttribute function still doesnt work probally when using the DOMParser 
> <script type="text/javascript">
>         var sXml = '<div xmlns="http://www.w3.org/1999/xhtml"
> xmlns:b="http://www.backbase.com/b" b:name="stylesheet" />';
>         if(document.all){
>                 var oXml = new ActiveXObject('Microsoft.XMLDOM');
>                 oXml.loadXML(sXml);
>                 var oRes = oXml.documentElement;
>         }else
>                 var oRes = new DOMParser().parseFromString(sXml,
> 'text/xml').documentElement;
>         alert('attributes[2].name: '+oRes.attributes[2].name+' ==
> attributes[2].value: '+oRes.attributes[2].value);
>         alert('getAttribute(\'name\'): '+oRes.getAttribute('name')+' ==
> getAttribute(\'b:name\'): '+oRes.getAttribute('b:name'));
> </script>

OK. Then please file a new bug with a suitable test case. Don't reopen this
one. This one is something we already fixed, and landed with a regression test.
It would be fine to reopen this one if this fix didn't work.


-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list