-
- Downloads
Validator: added initializer for attributes
Similar to the tags, the attributes can be initialized. Missing tags are automatically added. The declaration syntax is currently a bit annoying, as the tags, that belong to an attribute, either have to be declared explicitly or a pointer to the tag declaration must be given, but then only concurrent tags are possible. Support for global attributes is likewise missing; it must be ensured, that (tag_n != 0) && (tags != NULL). Otherwise validator will be inconsistent and there might be a bug.
Showing
- sefht.geany 5 additions, 5 deletionssefht.geany
- src/lib/sefht/validator.c 6 additions, 1 deletionsrc/lib/sefht/validator.c
- src/lib/sefht/validator_attr.c 210 additions, 0 deletionssrc/lib/sefht/validator_attr.c
- src/lib/sefht/validator_html.h 10 additions, 0 deletionssrc/lib/sefht/validator_html.h
- tests/test_validator_attr.c 125 additions, 2 deletionstests/test_validator_attr.c
Loading
Please register or sign in to comment