iska
7b028a2819
Enable warnings for documentation comments and fix present errors
2017-10-13 22:48:16 +02:00
iska
4e1959bd81
Fix strict-prototypes blocks declarations throughout codebase
2017-09-23 02:31:48 +02:00
iska
f0d9817c68
Restore default modulemap file name
...
Closes #13
2017-09-23 02:27:35 +02:00
iska
4a41b89ecf
Update tokenizer implementation as per spec as of 2017.09.09
...
- Use new initial states in tests according to:
https://github.com/html5lib/html5lib-tests/pull/101
- Implement tokenization errors introduced in:
https://github.com/whatwg/html/pull/2701
https://github.com/html5lib/html5lib-tests/pull/92
2017-09-10 02:23:31 +02:00
iska
d4ff2e3869
Add error-code property for ParseError token
...
In addition to the detailed reason message parse errors have an
error-code property that is specified in the WHATWG HTML spec.
2017-09-07 22:08:28 +02:00
iska
6dee6c1e74
Update input stream reader error handling
...
Use newly specified parse errors:
https://html.spec.whatwg.org/multipage/parsing.html#parse-errors
2017-09-07 22:05:02 +02:00
iska
644c180f81
Improve memory allocation/consumption in the Stack of Open Elements
...
Instead of allocating new dictionaries for the scope elements, the scope
checks are just unrolled in-place. Now we have 6 almost identical methods
that differ only in the inline-check-method. Not optimal but minimal
memory and performance penalty.
This should reduce memory consumption and increase the performance
while parsing, see issue #10
2017-04-26 21:31:55 +02:00
iska
d9670cddf4
Add workaround for Xcode8.3 issue with modulemaps
...
This should be the fix for #12 . However the issue will stay open until
tested with Xcode 8.3.1
2017-04-09 20:58:25 +02:00
iska
b693a60358
Use lazy allocation for underlying collections in HTML Nodes
...
Do not allocate empty collections for child nodes or attributes when
initializing new HTML Nodes or Elements. These are initialized the first
time they are accessed.
Analogously, the mutable data string of CharacterData is also allocated
with the empty string on first access.
2017-04-09 20:52:06 +02:00
iska
9651d12fd0
Deprecate for old HTMLRange’s initializers with typo
2017-03-31 17:23:30 +02:00
Martin Waitz
22de41d912
Fix typo Dowcument -> Document
2017-03-31 08:53:11 +02:00
Martin Waitz
bbc5467b33
[modulemap] use textual header for character definitions
...
Both CSSCodePoints.h and HTMLTokenizerCharacters.h define the same
symbols.
They are never included by the same compilation unit, but when they are
compiled into the same module, they create a conflict.
Fix this conflict by using `textual header`.
2017-03-13 23:11:16 +01:00
Martin Waitz
b8f1123b86
Fix compilation for Swift 3.1
...
Move the `module.modulemap` into `Sources/include` and add an exclude
for `Tests/Fixtures`.
2017-03-03 08:25:14 +01:00
iska
e5237a68c4
Update project headers and targets
2017-01-14 23:54:36 +01:00
iska
1e5517f403
Fix return type of split-text method in HTML Text
2017-01-10 17:55:26 +01:00
iska
925848404b
Add implementation for HTML Range surround and insert node
2017-01-08 22:38:41 +01:00
iska
fe46b106b2
Add implementation for HTML Text splitting
2017-01-08 22:36:47 +01:00
iska
e48ccf42ca
Add HTML Node deep clone implementation
2017-01-08 09:31:37 +01:00
iska
8602ad5a7b
Add extended documentation for Node’s containsNode method
...
This will be deprecated and replaced with isInclusiveAncestor in a later
release.
2017-01-05 02:44:05 +01:00
iska
4d132af99f
Update and reorganize private headers and modulemap
2016-12-29 22:53:34 +01:00
iska
e4b57f3333
Update deprecation message in HTML Text node
2016-11-27 20:19:19 +01:00
iska
9df89043d3
Refactor all private extensions into own separate categories
2016-11-27 03:12:58 +01:00
iska
c3c7c34310
Deprecate appendString: method in HTML Text node
...
The data property is mutable and should be used instead
2016-11-27 02:10:10 +01:00
iska
fb2952062d
Add Character Data implementation as a base for text and comment nodes
...
https://dom.spec.whatwg.org/#characterdata
2016-11-27 02:09:06 +01:00
iska
49799f8bcd
Add methods to select a node and node contents in a HTML Range
2016-11-22 21:42:45 +01:00
iska
6ed0238a89
Add implementation for setting HTML Range’s boundaries
2016-11-22 01:20:20 +01:00
iska
80299ad9e0
Change HTMLDocumentPosition to NS_OPTIONS instead of NS_ENUM
...
Better interop with Swift
2016-11-22 01:17:32 +01:00
iska
ffc9e629f2
Add index property for HTML Node
2016-11-22 01:15:23 +01:00
iska
394a1a53c4
Add root-node property for HTML Node
2016-11-22 01:15:09 +01:00
iska
2fb871a7ff
Add implementation for the length property for HTML Nodes
...
See:
https://dom.spec.whatwg.org/#concept-node-length
https://heycam.github.io/webidl/#dfn-code-unit
2016-11-20 18:36:55 +01:00
iska
800336d317
Add nullability annotation for CSSSelectorParser's parse method
2016-09-27 22:32:30 +02:00
iska
7e42fd1e08
Add missing lightweight generics in Parser, Element & Node classes
...
To play nicely with Swift 3
2016-09-20 19:28:08 +02:00
iska
9698919d35
Fix import in private HTMLNode header
2016-08-27 02:07:54 +02:00
iska
9a1a12c788
Remove prefix header and necessary foundation imports
2016-08-27 02:02:43 +02:00
iska
e56a980e80
Move header files into include directory
2016-08-27 01:59:53 +02:00