Menu

#2 add line numbering to HtmlCleaner

2.13
open
nobody
None
5
2015-05-15
2007-10-11
Chad Loder
No

The following patch implements line numbering in HtmlCleaner and uses the setUserData/getUserData methods of org.w3c.dom.Node to ensure that line numbers are available within DOM trees (as Integer userdata).

This patch is hereby transferred released under the BSD license.

Some comments: Instead of having 4 separate Integer user data properties, one could have a single HtmlCleaner-specific DocumentLocation object, but this may not be desirable.

We considered also inserting some org.w3c.dom.ProcessorInstruction nodes into the DOM tree but decided that this was much less elegant.

Discussion

  • Chad Loder

    Chad Loder - 2007-10-11

    the diff

     
  • Chad Loder

    Chad Loder - 2007-10-11

    Two new files which go with the patch

     
  • Chad Loder

    Chad Loder - 2007-10-11

    Logged In: YES
    user_id=215018
    Originator: YES

    File Added: linenums_newfiles.diff

     
  • Scott Wilson

    Scott Wilson - 2015-05-12
    • Group: --> 2.12
     
  • Scott Wilson

    Scott Wilson - 2015-05-15
    • Group: 2.12 --> 2.13
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.