Commit Graph

  • 22e397b1f4 Add a tree-description method for HTML Node iska 2015-03-30 23:30:41 +02:00
  • e157e746a0 Add "description" methods for HTML Nodes iska 2015-03-30 23:28:34 +02:00
  • 83c9841122 Add implementation for HTML Node Tree Enumerator iska 2015-03-28 23:59:47 +01:00
  • 3b4970202d Move Tokenizer tests loading into the helper HTML5Lib Tokenizer Test class iska 2015-03-25 23:01:23 +01:00
  • 22e6aff5e9 Refactor and organize code in the HTML Parser iska 2015-03-25 22:39:35 +01:00
  • 78fac7527b Fix parent node setting in HTML Node iska 2015-03-25 22:38:55 +01:00
  • bfb653e82e Add attributes-related methods to HTML Element iska 2015-03-25 22:37:52 +01:00
  • 7fb04f3394 Refactor Tokenizer tests into separate group and generate the test cases dynamically iska 2015-03-24 00:15:49 +01:00
  • b6e911a941 Restore missing method implementation in the Stack of Open Elements iska 2015-03-22 16:00:19 +01:00
  • ce78cf2b70 Fix data initialization in the HTMLText node iska 2015-03-22 15:59:55 +01:00
  • c0960d45af Fix the copy method in the HTML Node iska 2015-03-22 15:59:24 +01:00
  • da8f601e25 Remove set-parent-element from the node adoption method in the HTML Document iska 2015-03-22 15:58:37 +01:00
  • a9d4b4ce94 Add a writable private ready-state property for HTML Document iska 2015-03-22 15:57:55 +01:00
  • 514561dc38 Refactor "adoption agency algorithm" blocks into their corresponding wrappers iska 2015-03-22 15:57:19 +01:00
  • 7347e7a4f7 Add error-emit in the "initial" insertion mode when a DOCTYPE is missing iska 2015-03-22 15:43:30 +01:00
  • 3d0ff78108 Fix the "in body start tag" phase iska 2015-03-22 15:09:02 +01:00
  • d9dade5fb0 Add wrapper class for the "list of active formatting elements" iska 2015-03-22 15:07:40 +01:00
  • 8e427cbb3f Fix check for the override target in the "appropriate location for inserting node" iska 2015-03-22 00:20:10 +01:00
  • 30f7bba377 Fix selector names for the Parser's insertion modes table iska 2015-03-22 00:16:08 +01:00
  • e95d45b534 Fix clearing the stack of open elements for the "in table body" phase iska 2015-03-22 00:13:55 +01:00
  • 90cbccbc16 Remove NSFastEnumeration for the Tokenizer and subclass the NSEnumerator instead iska 2015-03-22 00:12:38 +01:00
  • 785760c625 Remove scripting flag from Parser iska 2015-03-19 21:10:30 +01:00
  • 1164609bcf Add implementation for inserting character tokens (strings) into the DOM iska 2015-03-19 01:30:47 +01:00
  • 9858efa611 Fix "appropriate place for inserting a node" iska 2015-03-19 01:30:04 +01:00
  • fcbffc76dc Add implementation for HTML Document node adoption iska 2015-03-19 00:43:16 +01:00
  • d8d191cb5a Add implementation for the HTML Node and its Mutation Algorithms iska 2015-03-19 00:42:43 +01:00
  • 352b34b76c Update html5lib-tests submodule to the latest commit as of 2015.03.16 iska 2015-03-16 01:16:45 +01:00
  • a7b526dc14 Restore the EOF Token and emit it in the tokenizer iska 2015-03-16 00:17:11 +01:00
  • c90e13481c Hide the "adjusted current node" property from the parser interface iska 2015-03-15 22:41:37 +01:00
  • 7f52c80ff7 Add handling for Tokenizer Parse Error Tokens in the Parser iska 2015-03-15 21:05:35 +01:00
  • c15dd439bc Move methods related to "insertion modes" further to the bottom in class iska 2015-03-15 21:05:17 +01:00
  • 9f4de95e62 Add HTML Tokenizer property to set the associated parser object iska 2015-03-15 21:04:25 +01:00
  • 48de37dc3d Add HTML Document "ready state" iska 2015-03-15 21:03:54 +01:00
  • ba0cf5d7f6 Add "template"-related token processing in HTML Parser iska 2015-03-15 20:32:52 +01:00
  • eb52f26014 Use correct cast for the token object in the "any other end tag in body" phase iska 2015-03-15 17:58:08 +01:00
  • a26bcfb0f2 Add missing import for element attribute adjustment methods in parser iska 2015-03-15 17:54:47 +01:00
  • a1560ddf37 Format special element types (add \n to break huge line) iska 2015-03-15 17:54:20 +01:00
  • 424241de47 Add implementations for MathML & SVG atribute adjustments iska 2015-03-15 17:53:17 +01:00
  • 5897ff2c58 Use ordered dictionary for the HTML Element's attributes iska 2015-03-15 17:49:05 +01:00
  • e56c8dff90 Finalize "HTML integration point" check iska 2015-03-15 17:48:29 +01:00
  • 77651cfe4e Restore implementation for the select-scope in the stack of open elements iska 2015-03-15 15:36:07 +01:00
  • 769098b6dc Finalize the "markup declaration open state" in the HTML Tokenizer iska 2015-03-15 15:31:18 +01:00
  • 6c7e3465e9 Add implementation for a ordered dictionary for HTML attributes iska 2015-03-15 14:41:15 +01:00
  • 0d2d6dedeb Add implementation for the rest of the insertion modes iska 2015-03-14 01:56:37 +01:00
  • 800f697237 Add implementation for "text" and "in table" insertion modes iska 2015-03-12 00:36:05 +01:00
  • 721290b814 Add handling for EOF token in "in body" insertion mode iska 2015-03-11 22:51:21 +01:00
  • 56e6cd5650 Add implementation for handling end tag tokens in "in body" insertion mode iska 2015-03-11 22:47:42 +01:00
  • 80f04cb7df rename adoption-agency-algorithm and toggle the return value iska 2015-03-11 22:31:15 +01:00
  • 10506550dd Add a shorthand element-in-scope method to match the spec iska 2015-03-10 00:31:08 +01:00
  • cf259240ab Add implementation for handling a start tag token in "in body" insertion mode iska 2015-03-10 00:13:14 +01:00
  • 9fbf247518 Add NSString category methods for comparison ignoring case iska 2015-03-10 00:11:57 +01:00
  • 91e2e3c5a3 Add return value for the adoption agency algorithm to indicate that further processing is needed iska 2015-03-09 21:25:53 +01:00
  • a256f1e701 Add implementation for the Adoption Agency Algorithm iska 2015-03-09 01:33:06 +01:00
  • 0495404f01 Add a wrapper class for the Stack of Open Elements iska 2015-03-09 00:34:06 +01:00
  • b8c18a7536 Add method to generate implied end tags and close a "p" tag iska 2015-03-07 00:45:25 +01:00
  • 443ac898fa Add method for specific scope checks iska 2015-03-07 00:44:06 +01:00
  • dab3f412b8 Add method to check whether an element is special iska 2015-03-07 00:43:18 +01:00
  • a2fcdf834b Add character token method to split it from a given index iska 2015-03-07 00:43:00 +01:00
  • 3ff1044c6d Add implementation for Character Token case in in-body insertion mode iska 2015-03-02 23:57:15 +01:00
  • d65463b4d6 Add implementation for Active Formatting Element Reconstruction iska 2015-03-02 23:56:31 +01:00
  • cb9570c9e1 Add NSString category for HTML related methods iska 2015-03-02 22:27:43 +01:00
  • c37ad24751 Add method generic-parsing-algorithm-for-token when encountering certain "text"-elements iska 2015-03-01 23:56:20 +01:00
  • fe36585846 Add implementation stub for inserting characters (text) iska 2015-03-01 23:54:23 +01:00
  • e3c04c807e Add implementation for in-head, in-head-noscript & after-head insertion modes iska 2015-03-01 23:53:46 +01:00
  • 9f8a08a644 Fix head-element insertion in before-head mode iska 2015-03-01 23:52:05 +01:00
  • 7131fff264 Fix override target in insert-element-for-node method iska 2015-03-01 23:50:42 +01:00
  • 41e2795d27 Add Parser flags initialization and fix flag-name typo iska 2015-03-01 23:50:04 +01:00
  • f0e5a7cb26 Add "Before HTML" & "Before Head" insertion modes implementation in HTML Parser iska 2015-03-01 03:31:03 +01:00
  • f05ddd5a51 Add Parser methods for creating and inserting elements for given tokens iska 2015-03-01 03:29:37 +01:00
  • 3ad454cb47 Add initializers for HTML Element class iska 2015-03-01 03:28:09 +01:00
  • f79530c7f6 Add convenience method to cast a Token to a Tag Token iska 2015-03-01 03:27:50 +01:00
  • 6217bc4299 Add Character Token methods for splitting leading whitespace iska 2015-03-01 03:27:24 +01:00
  • 6ec1892f73 Move HTML Nodes into separate group iska 2015-02-28 01:45:52 +01:00
  • 8d7d9d148e Use managed ivars for public and system identifiers in Document Type node iska 2015-02-28 01:07:39 +01:00
  • fc5ec2c2e4 Add warning pragma in Character token for caching character set iska 2015-02-28 01:04:21 +01:00
  • 098c0fe467 Add initial implementation for parsing a fragment iska 2015-02-28 01:03:54 +01:00
  • 7717cb7472 Add implementation for the parser's Initial Insertion Mode iska 2015-02-28 01:03:02 +01:00
  • c2086e482e Add parser method for inserting Comment nodes into the document iska 2015-02-28 01:01:58 +01:00
  • 6eccc61684 Rename utility method in Token classes for better semantics iska 2015-02-28 00:58:55 +01:00
  • 11631c7c76 Add methods to check Doctype validity and its quirks mode iska 2015-02-28 00:57:40 +01:00
  • 79856255da Add header that imports all HTML Nodes for convenience iska 2015-02-28 00:56:35 +01:00
  • 83bca329ff Add initial stubs for HTML Document and Element nodes iska 2015-02-27 00:03:35 +01:00
  • 034a28deea Add HTML Text node iska 2015-02-26 20:15:31 +01:00
  • fade192485 Rename HTML Node Type enum values iska 2015-02-26 20:09:27 +01:00
  • c45adc581b Add HTML Comment node iska 2015-02-26 00:00:21 +01:00
  • 5e9846b8ea Add HTML Document Type node iska 2015-02-25 23:48:24 +01:00
  • da00182ff2 Add HTML Node interface iska 2015-02-25 22:38:02 +01:00
  • aae4401167 Add convenience methods to cast HTML token to the appropriate type iska 2015-02-22 01:46:42 +01:00
  • 4e3c758f8c Add initial implementation for "appropriate place for inserting a node" iska 2015-02-22 01:45:53 +01:00
  • 3915487ca7 Add "insertion mode" state machine stub iska 2015-02-21 14:36:11 +01:00
  • f9c8743106 Add "tree construction dispatcher" and token handling stub iska 2015-02-21 14:30:44 +01:00
  • 4afa6d11e1 Change HTML test's description property to "title" iska 2015-02-19 22:26:10 +01:00
  • 25c233eaaa Add tagname attribute for HTML Element iska 2014-11-08 02:09:03 +01:00
  • a59fec42e7 Add enum for HTML Namespaces iska 2014-11-08 02:08:42 +01:00
  • 2d6889878b Add implementation for FastEnumeration protocol for forin-iteration iska 2014-11-02 13:54:21 +01:00
  • b0f27e3f2f Add missing new-lines in Token classes iska 2014-11-02 13:53:54 +01:00
  • fc91ae1296 Remove unnecessary method to get HTML Tokenization state as String iska 2014-11-01 22:45:46 +01:00
  • 8787e1b0b9 Add all HTML5 Lib's tokenizer tests iska 2014-11-01 22:25:20 +01:00
  • ccc355d80e Replace unconsuming with a location mark in the current character in After DOCTYPE Name state to avoid consuming the character twice iska 2014-11-01 22:24:32 +01:00
  • 0ea6eb2b4e Fix Attribute Name state for NULL character iska 2014-11-01 22:22:38 +01:00