ZF-4902: Cannot add 'id' attribute to a link when using the HeadLink helper

Issue Type: Bug Created: 2008-11-11T05:02:35.000+0000 Last Updated: 2008-12-21T06:02:05.000+0000 Status: Resolved Fix version(s): - 1.7.2 (23/Dec/08)

Reporter: Amit Gottlieb (amit) Assignee: Jon Whitcraft (sidhighwind) Tags: - Zend_View

Related issues: - ZF-3111



The tag is allowing to use "id" attribute but HeadLink() does not.

There is no way to add the "id" attribute using the HeadLink() helper which make is not usable if i need it.

It may be related to issue


Posted by Jon Whitcraft (sidhighwind) on 2008-12-04T18:47:59.000+0000

According the the HTML Spec for the link tag id is not a valid attribute Can i ask why you need an id on a link tag?

Posted by Jon Whitcraft (sidhighwind) on 2008-12-04T18:49:23.000+0000

Ignore my last comment I type before reading the whole page. It's linked to ZF-3111 as the same issue.

Posted by Amit Gottlieb (amit) on 2008-12-07T01:01:26.000+0000

w3schools is a great site, but for (rea) formal specs I think we should use… the specific reason I need id on a link tag is for dynamic changing the css file that i'm using.

BTW, at the w3schools link, at the bottom, it indicate that LINK tag has the "Standard Attributes", which include id.

Posted by Jon Whitcraft (sidhighwind) on 2008-12-07T13:19:27.000+0000


I agree. I'll run this by Matthew and/or Ralph and see what they say. If they give me the approval to go ahead with the patch i'll work on something.


Posted by Jon Whitcraft (sidhighwind) on 2008-12-07T14:06:54.000+0000

I have started work on this and I should have something up by EOD tomorrow. I need to finish testing and update the docs to reflect these changes.

Posted by Jon Whitcraft (sidhighwind) on 2008-12-10T16:20:03.000+0000

The fix was checked in with r13141

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.