You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to request the ability to bind and/or map onto tags themselves.
A simple example would be to bind additional <link> or <script> tags into the body of the <head> element.
Note that i am aware, in this example, that you could give <head> an id, or a class, but that just seems silly. I think it would be a perfectly reasonable use case to be able to insert data into the bodies of elements, especially for single element types such as head or body.
Some additional thoughts..
Prefix, Suffix, or Replace insertion would be nice. So you could insert the data into the beginning or end of the element, or replace it's content all together.
Multiple Matches. When dealing with tags such as <head> or <body> you'll often run into only one, but if you try and bind data to <li>, you'll likely match many more. With that said, you should be able to resolve which match(s) you would like to bind the data to.. or all of them?
The text was updated successfully, but these errors were encountered:
Yes, please. I'd like to be able to populate the <title> tag without needing to add an id (or other attribute) to it.
Another possible option is to provide a mechanism for removing the binding attribute. E.g. map.where('data-bind').is('title').use('title').removeAttribute(); It would be ugly in our templates but at least it wouldn't make it to the output...
Imho, this would be useful mainly for unique elements like title
I don't see any problems in adding a class to some repeating elements, but adding an id to <title> is quite ugly
I'd like to request the ability to bind and/or map onto tags themselves.
A simple example would be to bind additional
<link>
or<script>
tags into the body of the<head>
element.Note that i am aware, in this example, that you could give
<head>
an id, or a class, but that just seems silly. I think it would be a perfectly reasonable use case to be able to insert data into the bodies of elements, especially for single element types such as head or body.Some additional thoughts..
<head>
or<body>
you'll often run into only one, but if you try and bind data to<li>
, you'll likely match many more. With that said, you should be able to resolve which match(s) you would like to bind the data to.. or all of them?The text was updated successfully, but these errors were encountered: