-
Notifications
You must be signed in to change notification settings - Fork 11
Use xhp for html rendering #27
base: main
Are you sure you want to change the base?
Commits on May 27, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 9415eeb - Browse repository at this point
Copy the full SHA 9415eebView commit details -
Configuration menu - View commit details
-
Copy full SHA for 572bf9d - Browse repository at this point
Copy the full SHA 572bf9dView commit details -
Configuration menu - View commit details
-
Copy full SHA for e625dd9 - Browse repository at this point
Copy the full SHA e625dd9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 94aac71 - Browse repository at this point
Copy the full SHA 94aac71View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d8282b - Browse repository at this point
Copy the full SHA 8d8282bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8134e9d - Browse repository at this point
Copy the full SHA 8134e9dView commit details -
Configuration menu - View commit details
-
Copy full SHA for dccc276 - Browse repository at this point
Copy the full SHA dccc276View commit details -
Disable FinalOrAbstractClassLinter
This library contain many non-final classes, all of which may have been extended elsewhere. Accept that this library doesn't meet this strict standard and move on.
Configuration menu - View commit details
-
Copy full SHA for 799edc0 - Browse repository at this point
Copy the full SHA 799edc0View commit details -
Disable UseStatementWithAsLinter
This library contains classes with duplicate names. Example: ``` use type Facebook\Markdown\Block\ThematicBreak as ASTNode; class ThematicBreak {} ``` The alias to ASTNode allows the UnparsedBlocks\ThematicBreak to refer to the other. A use statement without an alias would create a name collision with the declaration. One could choose to always refer to the other node using a qualified name: Blocks\ThematicBreak
Configuration menu - View commit details
-
Copy full SHA for 32a5de5 - Browse repository at this point
Copy the full SHA 32a5de5View commit details -
This linter found `$offset;`, but I can't imagine what this was supposed to do. It's an int, so what the intent to increment / decrement it? Thank you @ryangreenberg for adding this linter to hhast.
Configuration menu - View commit details
-
Copy full SHA for 228532a - Browse repository at this point
Copy the full SHA 228532aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ff4e8c - Browse repository at this point
Copy the full SHA 9ff4e8cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0bf465f - Browse repository at this point
Copy the full SHA 0bf465fView commit details -
Configuration menu - View commit details
-
Copy full SHA for cbc51f9 - Browse repository at this point
Copy the full SHA cbc51f9View commit details -
Prepare for boolean attributes in tests
XHP renders `disabled={true}` as `disabled`, but the spec expects `disabled=""`. It would be a shame if this small incompatibility would block xhp adoption. Let's make the spec tests allow these stringless boolean attributes.
Configuration menu - View commit details
-
Copy full SHA for b02c8d9 - Browse repository at this point
Copy the full SHA b02c8d9View commit details -
Introduce an escape hatch for XHP rendering
The HTMLXHPRenderer still needs to be written.
Configuration menu - View commit details
-
Copy full SHA for c8fdbdd - Browse repository at this point
Copy the full SHA c8fdbddView commit details -
Create covariant interface IRenderer<T>
All methods have been extracted from Renderer<T>. We need this interface to write tests again HTML(XHP)?Renderer. This itnerface allows us to reference them as `IRenderer<XHPChild>`.
Configuration menu - View commit details
-
Copy full SHA for b5e961a - Browse repository at this point
Copy the full SHA b5e961aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 82ba6dd - Browse repository at this point
Copy the full SHA 82ba6ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 728a277 - Browse repository at this point
Copy the full SHA 728a277View commit details -
Configuration menu - View commit details
-
Copy full SHA for c5f3fd4 - Browse repository at this point
Copy the full SHA c5f3fd4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 30979eb - Browse repository at this point
Copy the full SHA 30979ebView commit details -
Configuration menu - View commit details
-
Copy full SHA for 19916da - Browse repository at this point
Copy the full SHA 19916daView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e5646d - Browse repository at this point
Copy the full SHA 1e5646dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8a5c5b4 - Browse repository at this point
Copy the full SHA 8a5c5b4View commit details -
Requires disabling child validation. Some of the specs expect invalid html.
Configuration menu - View commit details
-
Copy full SHA for 666c388 - Browse repository at this point
Copy the full SHA 666c388View commit details -
Configuration menu - View commit details
-
Copy full SHA for b60ab93 - Browse repository at this point
Copy the full SHA b60ab93View commit details -
Configuration menu - View commit details
-
Copy full SHA for c6a0f40 - Browse repository at this point
Copy the full SHA c6a0f40View commit details -
Configuration menu - View commit details
-
Copy full SHA for 63148c2 - Browse repository at this point
Copy the full SHA 63148c2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9482d13 - Browse repository at this point
Copy the full SHA 9482d13View commit details -
Factor out escape_uri_attribute
One fewer "magic" type system lie! Explicitly use the `->forceAttribute()` api. This is the proper way to tell lies and will be caught when xhp attributes become sound.
Configuration menu - View commit details
-
Copy full SHA for 6b25e2c - Browse repository at this point
Copy the full SHA 6b25e2cView commit details -
Wrap the HTMLXHPRenderer in a Renderer<string>
We can't simply switch the HTMLRender to use HTMLXHPRenderer under the hood. The xhp renderer has slightly different output: - Boolean attributes are rendered as `attr` instead of `attr=""`. - Void elements don't include a trailing solidus (backslash) in their open tag. I'd not want to break test suites , bust caches, or break naive parsers. This change should be opt-in, but low friction.
Configuration menu - View commit details
-
Copy full SHA for fb18394 - Browse repository at this point
Copy the full SHA fb18394View commit details -
Configuration menu - View commit details
-
Copy full SHA for 69b6b88 - Browse repository at this point
Copy the full SHA 69b6b88View commit details -
Configuration menu - View commit details
-
Copy full SHA for 86ec5dc - Browse repository at this point
Copy the full SHA 86ec5dcView commit details -
Optimization found by HHClientLinter
HTMLXHPRenderer had a `$node !== ''` comparison. This is always false, but we don't case about the filter anyhow. Joining an empty string has the same effect as not joining it. Optimization also applied in HTMLRenderer.
Configuration menu - View commit details
-
Copy full SHA for 999f859 - Browse repository at this point
Copy the full SHA 999f859View commit details -
Remove needless xhp_join() calls
Wrapping a vec of nodes in a frag is not needed if embedded in a node. The node would unpack the frag immediately and appended the children. This is what it does for a vec too.
Configuration menu - View commit details
-
Copy full SHA for c096490 - Browse repository at this point
Copy the full SHA c096490View commit details -
Configuration menu - View commit details
-
Copy full SHA for c53319a - Browse repository at this point
Copy the full SHA c53319aView commit details -
Remove hhvm(-autoload) requirement
The hhvm version is laughably out of date. We don't need hhvm-autoload, HH\Facts will do.
Configuration menu - View commit details
-
Copy full SHA for 4a55838 - Browse repository at this point
Copy the full SHA 4a55838View commit details -
Configuration menu - View commit details
-
Copy full SHA for 08e5859 - Browse repository at this point
Copy the full SHA 08e5859View commit details