|
|
|
Issue Links:
|
Dependency
|
|
This issue will help resolve:
|
|
|
MDL-14313 target inside a lang file breaks XHTML strict
|
|
|
|
|
|
Relates
|
|
This issue has a non-specific relationship to:
|
|
MDL-17922
JavaScript for setting target=XX on links based on a CSS class
|
|
|
|
|
|
|
|
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/
|
|
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/ |
Show » |
|
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...).