[Bug 13859] It seems href IDL attribute on base element doesn't reflect content attribute when there is more than one base element with "href".

http://www.w3.org/Bugs/Public/show_bug.cgi?id=13859

Shaofei Cheng <csf178@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |csf178@gmail.com

--- Comment #1 from Shaofei Cheng <csf178@gmail.com> 2011-08-22 08:12:23 UTC ---
Consider the following html:

<!DOCTYPE html>
<html xmlns="  http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
    <base id="a" href="  http://www.baidu.com" />
    <base id="b" href="  http://www.google.com" />
    <title></title>
</head>
<body>
    <script type="text/javascript">
       
alert([document.getElementById("a").href,document.getElementById("b").href]);
    </script>
</body>
</html>

According to the standard
"The href IDL attribute, on getting, must return the page's document base URL"

a.href and b.href should return the same value " http://www.baidu.com". But
this behavior is different from most implementations'.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Monday, 22 August 2011 08:12:27 UTC