Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: 1.9.3
-
Fix Version/s: None
-
Component/s: Accessibility, Resource
-
Labels:None
-
Affected Branches:MOODLE_19_STABLE
Description
If I write for example:
"Lets go to Moodle (http://moodle.org)."
and use the format option "Moodle auto-format", then the web address will be translated to:
<a href="http://moodle.org" target="_blank">http://moodle.org</a>
Notice the "target" parameter which is not allowed by XHTML 1.0 Strict.
I think the default behavior should be to strip the target parameter and to just let it open in the same window.
This issue has also been tested in the current http://demo.moodle.org/
I think we need some general solution for this, achieving:
I think one possible approach I've seen working is to add some CSS class to the link, and then, once the page is loaded, post-process it with a JS creating the proper targets.
I'm sure I've used that in some project... but I cannot remember where... shouldn't be difficult and could be applied to the Moodle format, the HTML Editor and other places (links to Docs...).
- accessibility
- functionality
I think one possible approach I've seen working is to add some CSS class to the link, and then, once the page is loaded, post-process it with a JS creating the proper targets. I'm sure I've used that in some project... but I cannot remember where... shouldn't be difficult and could be applied to the Moodle format, the HTML Editor and other places (links to Docs...).