Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

auto_discovery_link_tag does not insert html in <HEAD>

#3922

The auto_discovery_link_tag quite often can cause invalid HTML as it always outputs HTML directly.
For the HTML to be valid, the output should always be in the HTML HEAD.

I'm not entirely sure how this would be implemented, but it seems a relatively simple rule to satisfy to ensure valid HTML.

Reported by Neil Middleton · February 10th, 2010 @ 02:55 PM

State: invalid
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. Yaroslav Markin
    Yaroslav Markin
    • Tag changed from actionview to actionview, invalid

    You can use http://apidock.com/rails/ActionView/Helpers/TagHelper/content_tag and yield in your layout template to implement that. The helper works just fine -- it outputs HTML where asked.

    April 10th, 2010 @ 07:51 PM

  2. Jeremy Weiskotten
    Jeremy Weiskotten
    • Tag changed from actionview, invalid to actionview

    This is analogous to javascript_include_tag or stylesheet_link_tag. It's up to the application developer to call the helper in the correct place in their template.

    April 11th, 2010 @ 03:56 AM

  3. Santiago Pastorino
    Santiago Pastorino
    • State changed from new to invalid

    April 11th, 2010 @ 09:01 AM