How to set global attributes like microdata
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 3.4k
- Forks
- 361
- Avg merge
- 3d 41m
- Merged PRs (30d)
- 2
Description
I am trying to figure out how to add a global attribute setting. We would like to allow all microdata attributes itemscope, itemtype, etc.
I've looked through the code in HTMLDefinition.php and I've seen that if I add it to the info_global_attr property, it works, but I don't think this is the right approach considering the comment at line 319.
Can you please show me in the right direction? The forum at http://htmlpurifier.org/phorum is not working anymore.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in HTMLDefinition.php, especially the info_global_attr property and the comment near line 319, then compare the requested itemscope and itemtype attributes with the linked microdata specification. Determine the supported configuration or implementation path for global microdata attributes and document or validate the resulting behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- security
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100