Skip to content

OuterLength is incorrect, refering to the reconstructed OuterHtml and not the original #602

@sperlis

Description

@sperlis

In this sample HTML:

   <html>
      <body>
        <div class='aaa' /><div class='bbb'>
        </div>
     </body>
   </html>

When I examine the node of div with class 'aaa' the OuterHtml is <div class='aaa'></div> as it's reconstructed. The OuterLength is therefore the outer length of the OuterHtml propery (23), and not the original outer length (19). The original is stored in the _outerlength private property.
I need access to the original outer length or be able to get the original OuterHtml to get the length from there.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions