<?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>21708</bug_id>
          
          <creation_ts>2013-04-16 04:54:01 +0000</creation_ts>
          <short_desc>Errors with input element: readonly not accepted for type=text, defaulting of type not allowed</short_desc>
          <delta_ts>2015-08-23 07:07:40 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML Checker</product>
          <component>General</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jukka K. Korpela">jukka.k.korpela</reporter>
          <assigned_to name="Michael[tm] Smith">mike+validator</assigned_to>
          <cc>mike</cc>
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>86268</commentid>
    <comment_count>0</comment_count>
    <who name="Jukka K. Korpela">jukka.k.korpela</who>
    <bug_when>2013-04-16 04:54:01 +0000</bug_when>
    <thetext>&lt;!DOCTYPE html&gt;
&lt;title&gt;Sample 1&lt;/title&gt;
&lt;input type=text readonly&gt;

This causes the error message “Attribute readonly not allowed on element input at this point.” The explanation that follows lists readonly as allowed when type is text, as it of course is.

&lt;!DOCTYPE html&gt;
&lt;title&gt;&lt;/title&gt;
&lt;input readonly&gt;

This causes the error message “Element input is missing one or more of the following attributes: type.”

There is apparently something odd with readonly for type=text: when the type attribute is specified explicitly, readonly is not allowed; and when readonly is specified, defaulting of type is not allowed.

&lt;input type=search readonly&gt; validates OK, and so does &lt;input&gt;.

Validator.nu does not have this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86271</commentid>
    <comment_count>1</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2013-04-16 06:34:51 +0000</bug_when>
    <thetext>https://bitbucket.org/validator/syntax/commits/a44fd5d89a88c728742ef17d659fe8733aff71dd

and pushed to the W3C validator

Thanks for catching this</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>