Details
-
Bug
-
Resolution: Fixed
-
Minor
-
10.8
-
Unknown
-
N/A
-
N/A
-
-
4.1.1 Parsing
Description
AFFECTS:
- All pages
- xwiki:XWiki.WatchListRss
- xwiki:Main.WebHome
- etc.
ERROR:
- org.xwiki.test.webstandards.CustomDutchWebGuidelinesValidationTest.Validating HTML5 Dutch Web Guidelines validity for: xwiki:XWiki.WatchListRss executed with credentials Admin:admin (from org.xwiki.test.webstandards.AllTests)
- ERROR: There are links on this page that use the "target" attribute, this implies the opening of new windows. The "target" attribute has also been deprecated.
INVALIDATES:
- Dutch Guidelines: validateRpd8s14()
- R-pd.8.14 "Links on websites should not automatically open new windows without warning."
EXPLANATION:
- Cause by usage of target='blank'
- The ERROR message is confusing, since target attribute is not deprecated, see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#Attributes
- Target invalidates also WCAG 2.1, see
- https://www.w3.org/TR/WCAG20-TECHS/G200.html
- https://www.w3.org/TR/WCAG20-TECHS/G201.html
- the general recommendation is to have it only when absolutely necessary, and to provide warning modals before opening the link using JS or CSS. There are also some performance mentions that the new pages will open in the same browser tab process.
- https://css-tricks.com/use-target_blank/
- https://www.w3schools.com/tags/att_link_target.asp
FIXES:
- VAR1: Remove the target attribute
- VAR2: Add additional message / warning that the window will be opened in another tab
Attachments
Issue Links
- is related to
-
XWIKI-15719 .notifications-toggles inputs are missing labels
- Closed
-
XWIKI-4068 Allow the page to link to to be searched for or selected from the most recently edited pages
- Closed
- relates to
-
XWIKI-11602 Introduce a configuration to select the HTML version to use according to the current skin
- Closed