<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>6729</bug_id>
          
          <creation_ts>2009-03-24 08:35:16 +0000</creation_ts>
          <short_desc>Attribute getters/setters should lower case argument on HTML elements in HTML docs</short_desc>
          <delta_ts>2010-10-04 13:55:16 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>pre-LC1 HTML5 spec (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>NoReply</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Henri Sivonen">hsivonen</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>24386</commentid>
    <comment_count>0</comment_count>
    <who name="Henri Sivonen">hsivonen</who>
    <bug_when>2009-03-24 08:35:16 +0000</bug_when>
    <thetext>The spec says that Element.setAttribute() should lower case its argument. This is bad for SVG.

Instead, the spec should say that in an HTML document, setAttribute, getAttribute and getAttributeNode on HTMLElement objects must lower case the attribute name argument. 

See:
http://krijnhoetmer.nl/irc-logs/whatwg/20090324#l-236</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24444</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2009-03-31 01:29:58 +0000</bug_when>
    <thetext>The spec already seems to say this... Am I missing something?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24451</commentid>
    <comment_count>2</comment_count>
    <who name="Henri Sivonen">hsivonen</who>
    <bug_when>2009-03-31 11:39:54 +0000</bug_when>
    <thetext>Sorry. I was looking at the interface name and missed the sentence: &quot;This does not apply to XML documents or to elements that are not in the HTML namespace despite being in HTML documents.&quot; Indeed, the spec says this for setAttribute.

However, it doesn&apos;t say it for getAttribute and getAttributeNode.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24454</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2009-03-31 19:51:24 +0000</bug_when>
    <thetext>Why would getAttribute() or getAttributeNode() do anything special?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24478</commentid>
    <comment_count>4</comment_count>
    <who name="Henri Sivonen">hsivonen</who>
    <bug_when>2009-04-01 15:07:51 +0000</bug_when>
    <thetext>For performance and consistency with past behavior, the actual matching should be exact matching after the argument has been lower cased.

http://software.hixie.ch/utilities/js/live-dom-viewer/saved/51</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24483</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2009-04-01 21:16:03 +0000</bug_when>
    <thetext>I agree entirely, but that would argue for mutation when setting, not getting.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24498</commentid>
    <comment_count>6</comment_count>
    <who name="Henri Sivonen">hsivonen</who>
    <bug_when>2009-04-02 07:18:04 +0000</bug_when>
    <thetext>Assume the internal representation is interned &quot;foobar&quot; and assume you call getAttribute(&quot;FooBar&quot;). Now you have to lowercase the argument in order to do pointer compares with interned strings.

That is, I&apos;m arguing that the spec doesn&apos;t match Gecko/WebKit reality when it says the comparison operation should be case-insensitive.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25354</commentid>
    <comment_count>7</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2009-05-29 00:43:53 +0000</bug_when>
    <thetext>The spec in fact doesn&apos;t say anything about getAttribute() at all.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25355</commentid>
    <comment_count>8</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2009-05-29 00:47:35 +0000</bug_when>
    <thetext>Added a section on getAttribute() and getAttributeNS() that says that the argument is lowercased first.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33072</commentid>
    <comment_count>9</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2010-03-14 13:17:06 +0000</bug_when>
    <thetext>This bug predates the HTML Working Group Decision Policy.

If you are satisfied with the resolution of this bug, please change the state of this bug to CLOSED. If
you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

This bug is now being moved to VERIFIED. Please respond within two weeks. If this bug is not closed, reopened or escalated within two weeks, it may be marked as NoReply and will no longer be considered a pending comment.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>