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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>40809</bug_id>
          
          <creation_ts>2010-06-17 21:31:28 -0700</creation_ts>
          <short_desc>Line numbers incorrect in XHTML documents</short_desc>
          <delta_ts>2016-08-03 11:48:44 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>XML</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</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="Tony Gentilcore">tonyg</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>ap</cc>
    
    <cc>bburg</cc>
    
    <cc>eric</cc>
    
    <cc>ggaren</cc>
    
    <cc>jkjiang</cc>
    
    <cc>jmonte03</cc>
    
    <cc>ossy</cc>
    
    <cc>pfeldman</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>239742</commentid>
    <comment_count>0</comment_count>
    <who name="Tony Gentilcore">tonyg</who>
    <bug_when>2010-06-17 21:31:28 -0700</bug_when>
    <thetext>Line numbers are not reported correctly in XHTML documents.

See failing expectations in:
LayoutTests/svg/dom/script-line-number-expected.txt</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>241286</commentid>
    <comment_count>1</comment_count>
      <attachid>59378</attachid>
    <who name="Tony Gentilcore">tonyg</who>
    <bug_when>2010-06-22 09:13:26 -0700</bug_when>
    <thetext>Created attachment 59378
Layout Test for XHTML script line numbers</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>241288</commentid>
    <comment_count>2</comment_count>
    <who name="Tony Gentilcore">tonyg</who>
    <bug_when>2010-06-22 09:18:48 -0700</bug_when>
    <thetext>Please consider this bug available.

I ran into this problem while working on: https://bugs.webkit.org/show_bug.cgi?id=40649

I spent a little bit of time looking into a fix, but eventually gave up as libxml2 doesn&apos;t seem to be behaving the way we expect.

All of the following methods returned the total number of lines in the document, not the line at the current point:
 - context-&gt;input-&gt;line
 - context-&gt;node-&gt;line
 - xmlSAX2GetLineNumber(context)

I also tried setting context-&gt;linenumbers = 1 and lineNumbersDefault(1) during initialization, but to no avail.

So I&apos;m just uploading my test case in the hopes that it might be helpful to someone who knows more about libxml2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>241369</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-06-22 11:53:46 -0700</bug_when>
    <thetext>It&apos;s possible Qt may already pass this test since they have their own XML impl.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>241868</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-06-23 08:53:12 -0700</bug_when>
    <thetext>See also: bug 5206, bug 19800, bug 35451, bug 18855, bug 34078. Actually, bug 19800 has an XML test case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>467943</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-09-15 11:38:37 -0700</bug_when>
    <thetext>The attached test case seems to work fine in Safari 5.1 (Web Inspector says that the exception was on line 25). Is there still something to investigate here?

The bugs I mentioned above are all still open, but I haven&apos;t attempted to reproduced them now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1217046</commentid>
    <comment_count>6</comment_count>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2016-08-03 11:48:44 -0700</bug_when>
    <thetext>Nothing left to do. Closing.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>59378</attachid>
            <date>2010-06-22 09:13:26 -0700</date>
            <delta_ts>2010-06-22 09:13:26 -0700</delta_ts>
            <desc>Layout Test for XHTML script line numbers</desc>
            <filename>script-line-number.xhtml</filename>
            <type>application/xhtml+xml</type>
            <size>635</size>
            <attacher name="Tony Gentilcore">tonyg</attacher>
            
              <data encoding="base64">PGh0bWwgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGh0bWwiPgo8aGVhZD4KPHRpdGxl
PlNjcmlwdCBsaW5lIG51bWJlcjwvdGl0bGU+CjxsaW5rIHJlbD0ic3R5bGVzaGVldCIgaHJlZj0i
Li4vLi4vZmFzdC9qcy9yZXNvdXJjZXMvanMtdGVzdC1zdHlsZS5jc3MiLz4KPHNjcmlwdCBzcmM9
Ii4uLy4uL2Zhc3QvanMvcmVzb3VyY2VzL2pzLXRlc3QtcHJlLmpzIj48L3NjcmlwdD4KPC9oZWFk
Pgo8Ym9keT4KPGRpdiBpZD0iZGVzY3JpcHRpb24iPjwvZGl2Pgo8ZGl2IGlkPSJjb25zb2xlIj48
L2Rpdj4KPHNjcmlwdCBzcmM9Ii4uLy4uL2Zhc3QvanMvcmVzb3VyY2VzL3NjcmlwdC1saW5lLW51
bWJlci5qcyIgb25sb2FkPSJ0cnkgeyBub25FeGlzdGVudEZ1bmN0aW9uT25MaW5lMTAoKTsgfSBj
YXRjaCAoZSkgeyBhc3NlcnRFcnJvck9uTGluZShlLCAxMCk7IH0iPjwvc2NyaXB0Pgo8c2NyaXB0
Pgp0cnkgewogICAgbm9uRXhpc3RlbnRGdW5jdGlvbk9uTGluZTEzKCk7Cn0gY2F0Y2ggKGUpIHsK
ICAgIGFzc2VydEVycm9yT25MaW5lKGUsIDEzKTsKfQo8L3NjcmlwdD4KPHNjcmlwdCBzcmM9Ii4u
Ly4uL2Zhc3QvanMvcmVzb3VyY2VzL2pzLXRlc3QtcG9zdC5qcyI+PC9zY3JpcHQ+CjwvYm9keT4K
PC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>