[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 08:50:11 PST 2006


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


sjoerd at backbase.com changed:

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




------- Comment #16 from sjoerd at backbase.com  2006-03-08 08:50 PDT -------
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>


-- 
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