Stories
Slash Boxes
Comments

SoylentNews is people

The Fine print: The following are owned by whoever posted them. We are not responsible for them in any way.

sax = xml.sax

parser = sax.make_parser()

print parser

print "Parsing good.html"

parser.parse( "TestData/good.html" )

print "Parsing bad.html"

parser.parse( "TestData/good.html" )

===

But seriously folks - I've found a 100% bugs in the W3C HTML5 validator - it doesn't catch a certain unclosed tag. It also doesn't catch a bad entity, but I don't know maybe HTML 5 is OK with ampersands that mark the start of a query parameter.

I'll report this later today.

Display Options Threshold/Breakthrough Reply to Article Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
(1)
  • (Score: 2) by MichaelDavidCrawford on Thursday September 20 2018, @06:02PM

    by MichaelDavidCrawford (2339) Subscriber Badge <mdcrawford@gmail.com> on Thursday September 20 2018, @06:02PM (#737627) Homepage Journal

    spamPaths = []

            for file in f:
                    if ".html" in file:
                            spamPaths.append( os.path.join( r, file )

            for path in spamPaths:
                    if "ssincludes" not in path:
                            paths.append( path )

    --
    Yes I Have No Bananas. [gofundme.com]
  • (Score: 2) by MichaelDavidCrawford on Friday September 21 2018, @09:38PM

    by MichaelDavidCrawford (2339) Subscriber Badge <mdcrawford@gmail.com> on Friday September 21 2018, @09:38PM (#738366) Homepage Journal
  • (Score: 0) by Anonymous Coward on Saturday September 22 2018, @02:52AM (7 children)

    by Anonymous Coward on Saturday September 22 2018, @02:52AM (#738458)

    Don't Let This Get You Down: I regard your validators as Heaven-Sent Miracles. -- Mike

    Ma! This saccharine bug report takes like diabetes!

    Fuck MDC

    • (Score: 2) by MichaelDavidCrawford on Saturday September 22 2018, @08:28AM (6 children)

      by MichaelDavidCrawford (2339) Subscriber Badge <mdcrawford@gmail.com> on Saturday September 22 2018, @08:28AM (#738498) Homepage Journal

      Every aspiring coder just loves it when a fan appreciates his work.

      --
      Yes I Have No Bananas. [gofundme.com]
      • (Score: 0) by Anonymous Coward on Saturday September 22 2018, @05:15PM (5 children)

        by Anonymous Coward on Saturday September 22 2018, @05:15PM (#738597)

        Aspiring coder indeed. Two contributions to GitHub in the past year. Both contributions are in issue trackers. Neither contribution is a pull request, not even a rejected pull request, not even an ignored pull request. Two repositories in GitHub. Both repositories are forks. Only one repository contains one commit, a change to a readme file, and not a single line of code.

        I have seen more potential in aspiring coders who write thousands of lines of code in hundreds of commits to their own forks of projects, submit pull requests that get ignored for years, and then quit coding in despair.

        According to your GitHub profile, you are not a coder. Period.

        • (Score: 2) by MichaelDavidCrawford on Saturday September 22 2018, @07:01PM (4 children)

          by MichaelDavidCrawford (2339) Subscriber Badge <mdcrawford@gmail.com> on Saturday September 22 2018, @07:01PM (#738623) Homepage Journal

          All of my free software development time goes towards building out Soggy Jobs

          IMHO anyone who hosts their code at github is a corporate whore

          --
          Yes I Have No Bananas. [gofundme.com]
          • (Score: 0) by Anonymous Coward on Saturday September 22 2018, @07:10PM (3 children)

            by Anonymous Coward on Saturday September 22 2018, @07:10PM (#738628)

            All of my free software development time goes towards building out Soggy Jobs

            Under the GNU General Public License, I demand the full complete free software source code of Soggy Jobs immediately. Link it here. Right now, liar.

            Fuck MDC

(1)