-
Notifications
You must be signed in to change notification settings - Fork 987
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
div injected inside head tag, and whitespace issues on generated css #144
Comments
|
Just inspecting element on fitvidsjs.com. And that's interesting, what's the scope issue w/IE? |
Ah, that'll teach me for reading messages without looking at the hyperlink ;) haha... Have you looked at either: IE: All others: |
It hasn't come up, because what we have is working. I suppose it's possible (??). It would just require a pretty big round of testing to make sure. |
Yeah, it would definitely be an improvement, injecting into the DOM as a string isn't always perfect. I don't know if you've seen FluidVids, but it's a raw JS equivalent, which makes use of this technique (just pushed an update): https://github.com/toddmotto/fluidvids/blob/master/dist/fluidvids.js. Feel free to integrate into FitVids the few lines of code. |
Nice! Might do. Let me know if run into any problems. — On Wed, Oct 30, 2013 at 5:21 PM, Todd Motto [email protected]
|
Merging this into #159 |
As per screenshot, a div is injected into the
head
element, which is wrong. I'd suggest opting for an attribute/attrs on<style>
such as<style id="fitvids">
.Once rendered in the DOM, you've got a lot of whitespace, a simple
/\s/g
replace before appending would solve this for anyone debugging/viewing the code in Dev Tools:The text was updated successfully, but these errors were encountered: