Giter Site home page Giter Site logo

Comments (7)

tchalvak avatar tchalvak commented on August 29, 2024 1

That repo also hasn't been updated since 2012...

from jquery-details.

bcjordan avatar bcjordan commented on August 29, 2024 1

Nevermind, looks like #18 handles that situation properly already. Should be merged in?

from jquery-details.

WebDragon avatar WebDragon commented on August 29, 2024

'broken' how? details are important. put up a jsfiddle demonstrating the broken, if you please.

from jquery-details.

einfallstoll avatar einfallstoll commented on August 29, 2024

'broken' as in 'not working'. I just tested this against IE9 and jQuery 1.11.x and the details don't show/dismiss its content. Even the demo.html is broken for me in IE9.

I'm not a fan of advertise other repos, but since the author abandoned this 2-3 years ago, there's a working zero-dependency solution: https://github.com/kapitancho/logifill-details

from jquery-details.

bcjordan avatar bcjordan commented on August 29, 2024

IE9 with jQuery 1.11.0 appears to work in some simple situations, save for it no longer hiding bare child elements.

IE9 Win7 via BrowserStack:

  • 1.8.x CodePen - Works as expected

  • 1.9.x CodePen - Works as expected

  • 1.10.0 CodePen

    • Bare child text nodes always display

    image

  • 1.11.0 CodePen

    • Bare child text nodes always display

from jquery-details.

bcjordan avatar bcjordan commented on August 29, 2024

Somewhat odd aside, wrapping the <details> tag with a paragraph element results in IE9 only hiding/showing up through the next inner <p> element (CodePen).

image

And if a <p> wrapped summary contains an h1, it doesn't even show the first text nodes.

from jquery-details.

bcjordan avatar bcjordan commented on August 29, 2024

Here we go, .contents(':not("any-old-filter")') in jQuery > 1.9 happens to also filter out all non-wrapped TextNodes, while contents() and children() leave all of them in. That causes the $detailsNotSummaryContents to exclude the nodes that need <span> wrapping to hide properly.

jQ 1.9 (leaves in unwrapped nodes): http://codepen.io/anon/pen/MwQmVb
jQ 1.10 (filters out unwrapped nodes): http://codepen.io/anon/pen/YXeVLJ

PR forthcoming

from jquery-details.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.