JDocumentRendererHtmlHead
uses a hardcoded rel="stylesheet"
attribute for CSS link elements which means the API does not have a way to set custom relation attributes such as those used for link prefetching. This specific portion of the API needs improvement to allow custom rel types to be added. Note that it can be done already with JDocumentHtml::addHeadLink()
so it's just the stylesheet portion of JDocument
that needs attention.
Category | ⇒ | Feature Request Libraries |
Labels |
Added:
?
|
Labels |
Added:
?
|
Status | New | ⇒ | Needs Review |
Status | Needs Review | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-05-08 15:35:59 |
Closed_By | ⇒ | mbabker |
Labels |
Removed:
?
|
actually even addHeadLink has a problem if you whant to add a link with an href that's already added.
In that case the only option is to add a addCustomTag
example https://github.com/joomla/joomla-cms/blob/staging/plugins/system/languagefilter/languagefilter.php#L732-L748
This is a problem with some JDocument methods. They also use attrib values as arrays keys, so they can't be duplicated.