J. King
96d6d7ee01
Fix simple textContent
10 months ago
J. King
7486cc598d
Tweak options
- change simpleTrim to thoroughTrim, its inverse. This makes all-false
be standard rather than default behaviour
- add a dateNormalization option, default to true. This makes testing
easier, though some patching of tests is still required
10 months ago
J. King
a0de146baa
Use consistent whitespace trimming
10 months ago
J. King
90cd153e4d
Use only first location in a response
10 months ago
J. King
eab9abf9d5
Use only the first Content-Type in a response
10 months ago
J. King
eb89a89593
Time zone fixes:
- Handle -00:00 better; it is rejected by PHP
- Use P instead of O to format time zone output
10 months ago
J. King
be15539af9
Be me explicit about skipping props and roots in VCP
11 months ago
J. King
fd4b80d8f6
Fix VCP comparison bug
11 months ago
J. King
b0de7d2755
Various fixes
- No other implementation deduplicate mf2 properties, so we shouldn't
do things differently from others
- Attribute values shouldn't be trimmed except in implied name parsing
11 months ago
J. King
3b73f3a9d2
Follow implementation consensus with implied e-
11 months ago
J. King
6ae544a105
Simplify implied property parsing
11 months ago
J. King
96999e1861
Add TODO
11 months ago
J. King
2613cb5802
Add documentation
11 months ago
J. King
c2c14c6155
Add function to parse from a URL
11 months ago
J. King
9be16f54d4
Revise test for clarity
11 months ago
J. King
9f5e5a39d1
More template tests
11 months ago
J. King
282bd7169f
Complete test coverage
11 months ago
J. King
59d77404e8
Add more tests
11 months ago
J. King
f7c0574d0d
Improve coverage
11 months ago
J. King
5b1579d90b
More template fixes
11 months ago
J. King
f84781e443
Reformat early dockblocks
11 months ago
J. King
1dde3208bd
Match template behaviour to other implementations
Templates are completely ignored in all circumstances, not just their
contents.
11 months ago
J. King
2a552c2098
Simplify XPath expressions
11 months ago
J. King
8264d3c864
Tests and fixes for templates
11 months ago
J. King
8d4a61adaa
Add some original tests
11 months ago
J. King
2e622b205d
Abandon use of ArrayAccess and JsonSerializable
11 months ago
J. King
bd9d5511f5
Add public API
11 months ago
J. King
a41f757e19
Annotate remaining functions
11 months ago
J. King
109764049c
Add more API documentation
11 months ago
J. King
2fe3d5edd6
Add some API documentation
11 months ago
J. King
9868bc9721
Avoid now-unnecessary tree walking
11 months ago
J. King
d1cb1a0e98
Use XPath to find candidate roots
This is slightly slower for small trees, but much faster for large ones
11 months ago
J. King
73ba0df600
Implement language parsing
11 months ago
J. King
8efbbf0907
Fix more bugs
URL normalization still needs to be sorted out
11 months ago
J. King
8e05089259
Fix logic errors in VCP
11 months ago
J. King
682dcf576b
Collapse child into e- properly
11 months ago
J. King
65bbf61579
Implement textContent parsing properly
11 months ago
J. King
650d1c7e98
Partial implementation of thorough trimming
11 months ago
J. King
50976298c8
Partially revert earlier changes
These broke standard tests. The whitespace collapsing needs to be
re-evaluated entirely.
11 months ago
J. King
3b34c3e5fa
Partial fix for mixed-root test
11 months ago
J. King
1000727649
Make backcompat location match other libs
11 months ago
J. King
d7f7cb9586
Bug fixes
- Tag relation
- Inner whitespace of cleaned text
- Deferred properties
11 months ago
J. King
4eee308b22
Add special backcompat case for u-properties
11 months ago
J. King
da1c8074e2
Remove unneeded container handling
11 months ago
J. King
8f8bf4a80c
Sort out reviews
Special handling of items will later go away
11 months ago
J. King
967e0ecace
Add average to h-review backcompat
11 months ago
J. King
b467e82c32
Sort out h-card backcompat
11 months ago
J. King
3c0433547d
Add attendee to h-event backcompat
11 months ago
J. King
f300cbae5a
Allow lowercase z as time zone designator
11 months ago
J. King
cbe54dc1c5
Expand h-feed v1 support per test
11 months ago