-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mistuke has pointed out that (!) does not allow attributes to be added to a general (X)HTML tag while taking account of the attributes that are already defined by the tag [1]. This can make it hard to generally extend tags with attributes while even being sure that correct (X)HTML is being generated (the standard prohibits the duplication of attributes[2]). In order to minimize disruption the existing interface has been extended with an alternative class to `ADDATTRS` called `CHANGEATTRS` and a deconstructor function, `htmlAttrPair`, for analysing the (abstract) `HtmlAttr` type. With `CHANGEATTRS` a function is used to transform the existing attributes (which can now be analysed with `htmlAttrPair`) rather than being passed a list of attributes to add to an HTML tag as is the case with `ADDATTRS`. [1] #2 [2] http://www.w3.org/WAI/GL/WCAG20-TECHS/H94.html
- Loading branch information
Showing
5 changed files
with
28 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,5 @@ dist | |
GNUmakefile | ||
dist-install/ | ||
ghc.mk | ||
test.hs | ||
.hub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters