<?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>25871</bug_id>
          
          <creation_ts>2014-05-23 03:02:14 +0000</creation_ts>
          <short_desc>What&apos;s the &quot;character that caused the state machine…&quot; when it was a branch on EOF? What about the transition from markup declaration open state which does lookahead of multiple charaters, so what&apos;s &quot;the&quot; character?</short_desc>
          <delta_ts>2014-08-05 19:34:51 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#bogus-comment-state</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>geoffers+w3cbugs</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>106690</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-05-23 03:02:14 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/tokenization.html
Multipage: http://www.whatwg.org/C#bogus-comment-state
Complete: http://www.whatwg.org/c#bogus-comment-state
Referrer: http://www.whatwg.org/specs/web-apps/current-work/multipage/

Comment:
What&apos;s the &quot;character that caused the state machine…&quot; when it was a branch
on EOF? What about the transition from markup declaration open state which
does lookahead of multiple charaters, so what&apos;s &quot;the&quot; character?

Posted from: 86.30.234.99 by geoffers@gmail.com
User agent: Mozilla/5.0 (X11; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106734</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-05-23 19:52:30 +0000</bug_when>
    <thetext>EOF is a character. See the last paragraph of:
 http://www.whatwg.org/specs/web-apps/current-work/#preprocessing-the-input-stream

What&apos;s the case where you enter the bogus comment state from a string?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106742</commentid>
    <comment_count>2</comment_count>
    <who name="Geoffrey Sneddon">geoffers+w3cbugs</who>
    <bug_when>2014-05-23 21:54:09 +0000</bug_when>
    <thetext>Then how do we include an EOF character in a comment token? Surely every UA is non-conforming given they don&apos;t include the EOF character in that case?

And the second case was me misreading the spec, so ignore that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106818</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-05-27 06:10:50 +0000</bug_when>
    <thetext>Does the parenthetical at the end of the paragraph not sufficiently cover this? Maybe I should remove the parentheses?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106862</commentid>
    <comment_count>4</comment_count>
    <who name="Geoffrey Sneddon">geoffers+w3cbugs</who>
    <bug_when>2014-05-27 22:27:25 +0000</bug_when>
    <thetext>That sounds to me like it&apos;s meant to be restating what has already been stated, and therefore contradicting the above, given the token should include the character that caused the transition (i.e., EOF) while also being empty.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106886</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-05-28 05:37:33 +0000</bug_when>
    <thetext>Well right now the other text says &quot;the characters starting from and including the character that caused the state machine to switch into the bogus comment state, up to and including the character immediately before the last consumed character&quot;, which is a negative-length string in the case of &quot;&lt;!&quot; followed by EOF. The parenthetical was trying to clean that up.

But I can try to improve this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109955</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-08-05 19:33:57 +0000</bug_when>
    <thetext>Please reopen if the fix isn&apos;t sufficient.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109956</commentid>
    <comment_count>7</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-08-05 19:34:51 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r8709.
Check-in comment: Try to avoid negative-length strings and strings with EOF characters in them...
http://html5.org/tools/web-apps-tracker?from=8708&amp;to=8709</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>