Skip to content
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

continue the number ordering in ol element not working (Safari) #194

Open
schi opened this issue Jul 8, 2015 · 1 comment
Open

continue the number ordering in ol element not working (Safari) #194

schi opened this issue Jul 8, 2015 · 1 comment

Comments

@schi
Copy link

schi commented Jul 8, 2015

In Safari browser numbers are wrong. I changed to

if($cloneMe.get(0).tagName == 'OL'){
    var startWith = $clone.get(0).childElementCount;
    $cloneMe.attr('style','counter-reset: li ' + startWith);
}
@novalis
Copy link

novalis commented Sep 3, 2015

Chrome too. This patch works for me (assuming that I set up the necessary counter stuff in my CSS).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants