Jarek Pendowski
b945c13fa8
Fixed error with operator precedence in Xcode 12.
...
Removed ambiguity in the test.
2020-08-28 18:14:01 +02:00
iska
98f7c8304f
Implement a HTML Serializer
...
This implements the HTML Fragments Serialization according to:
https://html.spec.whatwg.org/multipage/parsing.html#serialising-html-fragments
2019-08-02 00:11:02 +02:00
Vladimir Vlasov
7c32b5f219
Fix the issue 28
2018-05-03 19:00:29 +03:00
iska
4e1959bd81
Fix strict-prototypes blocks declarations throughout codebase
2017-09-23 02:31:48 +02:00
iska
1cd1a915d3
Replace NSStringFromSelector calls with constants in HTMLNode
...
This should reduce allocations during HTML parsing. See Issue #10
2017-04-24 22:58:49 +02:00
iska
8379cee44f
Fix lazy allocation of childNodes Set in HTMLNode
...
The call self.childNodes always allocates the collection even if a nil
value is acceptable, i.e. hasChildNodes should return true even if the
childNodes Set is nil but should not allocate it yet.
Hence self.childNodes should only be used when appending child nodes.
2017-04-24 22:36:02 +02:00
iska
14dfc0b854
Replace performSelector with for-loop in HTML Node methods
2017-04-09 20:53:11 +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
e48ccf42ca
Add HTML Node deep clone implementation
2017-01-08 09:31:37 +01:00
iska
15acfa06f6
Fix HTML Node’s method to compare document positions
2016-12-30 03:07:59 +01:00
iska
7506ed8cae
Refactor method to get a node’s ancestor chain into the utils class
2016-12-30 03:07:33 +01:00
iska
6fdc7ff85b
Refactor private HTML Document extensions into one separate category
2016-11-27 02:43:10 +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
37444d5899
Move source code to Sources directory
2016-08-24 19:54:41 +02:00