GithubHelp home page GithubHelp logo

Comments (5)

asylumcs avatar asylumcs commented on May 29, 2024

The error is caused by lines 146, 150 and 156 in the source file. The file has <hr></hr> instead of <hr/> and that causes the XML parser to fail. At this point I only know why it fails. I don't know yet (1) how a user could detect that situation easily, or (2) what could be changed in ppcomp to either identify it or live with it.

from ppwb.

windymilla avatar windymilla commented on May 29, 2024

Thanks. I hadn't spotted them.

from ppwb.

asylumcs avatar asylumcs commented on May 29, 2024

If we don't want to consider those an error--and the HTML validator apparently says it's okay--then we should change the code to accept it. For that to happen, I believe it's as simple as putting this in the "cleanup some errors" block near line 220 of comp_pp.py:
self.parser_errlog = [x for x in parser.error_log if parser.error_log[0].type != 76]
I can start a PR for that if we want to ignore it and continue in ppcomp. Or maybe we want ppcomp to flag it and continue. Or maybe just flag it and bail out. What do we want to happen?

from ppwb.

windymilla avatar windymilla commented on May 29, 2024

from ppwb.

rtonsing avatar rtonsing commented on May 29, 2024

@cpeel @windymilla
It may pass W3C, but it does not pass Nu Html checker:
Error: Stray end tag hr.
From line 2904, column 5; to line 2904, column 9

and according to the Whatwg.org standard is not valid html.

Suggest closing.

from ppwb.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.