-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ALLOW_CHILDREN and PURGE_WITHOUT_ATTRS can't be set at the same time #71
Comments
Can you please give examples describing what you try to do and which input data (HTML) you're using? Thanks! |
I want to allow the script-tag for structured data in json format. So the attribute I'd like it to have is |
There was an unexpected behavior when parsing However,
→ Thus, the long-term solution for e.g. allowing JSON-LD in |
* [BUGFIX] Purge node only having empty text nodes Related: `Behavior\Tag::PURGE_WITHOUT_CHILDREN` * [TASK] Add test cases for custom behavior scenarios Related: #71
I want to use a certain tag that should be allowed to have children. In this case I'd use ALLOW_CHILDREN as a flag on my new tag.
But what if I want to allow it only if it has a specific attribute on it, like a must-have attribute?
I can't give it both flags, only one. So I have to decide whether it shows its content or shows itself if it has an attribute, but then it doesn't render the content inside of it.
Also, what is it with PURGE_WITHOUT_CHILDREN? This can't be used since you'd have to allow children in the first place. If I use this flag, I get "Tag %s does not allow children, but shall be purged without them", what's the point of setting this flag then?
The text was updated successfully, but these errors were encountered: