Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add xml5 parser to html5ever #125

Closed
wants to merge 6 commits into from
Closed

Add xml5 parser to html5ever #125

wants to merge 6 commits into from

Commits on May 15, 2015

  1. Change elem_name in interface to borrow

    Changed elem_name in TreeSink to borrow instead of move.
    Rest of changes are caused by it. No change in behaviour detected.
    Change is prerequisite for XML5 parser; plus it avoids clones in a
    few places.
    Ygg01 committed May 15, 2015
  2. Add XML5 parsing to html5ever

    Adds XML5 parser based on [spec](https://github.com/annevk/xml5) by
    . Currently working draft resides on
    https://github.com/Ygg01/xml5_draft and is rendered using
    [Bikeshed](https://github.com/tabatkins/bikeshed).
    
    This patch is only concerned with making it work right, according to
    spec. Things to be done:
    
    1. Add some support for doctype as suggested by annevk
        here:  Ygg01/xml5_draft#2
    2. Finish references in xml5 - basically, use all entity
       replacements html5 uses and add test for those.
    3. Add Namespace support.
    4. Unify two parsers using associated types.
    5. Add C API for xml5 parser.
    Ygg01 committed May 15, 2015
  3. Add Processing Instruction node type to tree builder

    - Add Processing Instruction as a separate type of Nodes. This
    is a prerequisite for proper XML support.
    Ygg01 committed May 15, 2015
  4. Add tests for XML5

    - Add basic tokenization and tree building tests
    Ygg01 committed May 15, 2015
  5. Add examples

    - Add example of xml_tokenizer, similar to examples/tokenizer.rs
    - Add small commented out snippet that turns print-rcdom into an XML tree printer
    Ygg01 committed May 15, 2015
  6. Update html5ever

    Ygg01 committed May 15, 2015
You can’t perform that action at this time.