Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8102245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:11:42+00:00 2026-06-05T23:11:42+00:00

I am using JS to split my ePub chapter into pages. I wrap code

  • 0

I am using JS to split my ePub chapter into pages. I wrap code with the new divs that will represent separate page. Also my CSS has style for new divs.
Everything is fine while my file has filename extension ‘html’, but that ePub provide xml files and in Safari style for new divs are not applied.
(I can rename file, and renamed xml to html start to wok).
What I am doing wrong?
Thanks for any help!

UPDATE
link to xml https://dl.dropbox.com/u/29925382/so/chapter.xml
to html https://dl.dropbox.com/u/29925382/so/chapter.html

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T23:11:44+00:00Added an answer on June 5, 2026 at 11:11 pm

    Got IT!
    The piece of code that caused it:

    var wrapper = document.createElement( 'div' );
    

    And it should be replaced with

    var wrapper = document.createElementNS ? 
                  document.createElementNS( 'http://www.w3.org/1999/xhtml', 'div' ) 
                  :document.createElement( 'div' );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to split this string 主楼怎么走 into separate characters (I need an array) using
I'm using the split linux command to split huge xml files into node-sized ones.
Using Java (1.6) I want to split an input string that has components of
I am using ack to search for instances of the PHP function split( that
When I using the following code to read file: lines=file(data.txt).read().split(\n) I have the following
Using a split view on the iPad, I have the following code: - (void)
split this String using function split. Here is my code: String data= data^data; String[]
When using split windows in VIM, sometimes I create new split of a file
I need to split a line of assembly code using split() method in Java.
I want to split following string into two parts using split function of javascript

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.