• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    Do more on the web, with a fast and secure browser!

    Download Opera browser with:

    • built-in ad blocker
    • battery saver
    • free VPN
    Download Opera

    web developer spacing in HTMLWordElements breaks webpage

    Opera for Windows
    2
    4
    485
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Former User
      A Former User last edited by

      if you head to my heroku web app on opera browser you will see that if ( HTMLWordElements - not a real thing just to to indicate h1-6 p and a tags, ), if the innerText or TextContent includes a spaces, it ignores its calculated with and breaks the page as if its width was initalized by the display css property. This is an angular 7 app idk if the problem is the custom angular component elements have a bug and i just need a simple upgrade(npm give me problems on my server)

      The bug happens if the textContent contains a space, it some how streches out of the body of the webpage and allows the user to scrooll to an empty overflow white space on the left. Hopefully I can find a utf-8 char that can act like a space so this problem goes away

      Reply Quote 0
        1 Reply Last reply
      • burnout426
        burnout426 Volunteer last edited by

        Link?

        Can you make a minimal test case also?

        Reply Quote 0
          1 Reply Last reply
        • A Former User
          A Former User last edited by

          burnout426 I guess why the opera browser is struggling bad agile development. anyway to solve this use the utf-8 no break space Unicode char in you textContent  

          Reply Quote 0
            1 Reply Last reply
          • burnout426
            burnout426 Volunteer last edited by

            I still don't know what you mean. Can you modify the test case below to show what the issue is?

            <!DOCTYPE HTML>
            <html>
                <head>
                    <meta charset="utf-8">
                    <title>Test</title>
                    <style>
                        p {
                            width: 150px;
                            border: 1px solid black
                        }
                    </style>
                </head>
                <body>
                    <p>Before_&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_After</p>
                </body>
            </html>
            

            Does it have to be a raw, non-breaking space or does the same happen with the entity?

            Reply Quote 0
              1 Reply Last reply
            • First post
              Last post

            Computer browsers

            • Opera for Windows
            • Opera for Mac
            • Opera for Linux
            • Opera beta version
            • Opera USB

            Mobile browsers

            • Opera for Android
            • Opera Mini
            • Opera Touch
            • Opera for basic phones

            • Add-ons
            • Opera account
            • Wallpapers
            • Opera Ads

            • Help & support
            • Opera blogs
            • Opera forums
            • Dev.Opera

            • Security
            • Privacy
            • Cookies Policy
            • EULA
            • Terms of Service

            • About Opera
            • Press info
            • Jobs
            • Investors
            • Become a partner
            • Contact us

            Follow Opera

            • Opera - Facebook
            • Opera - Twitter
            • Opera - YouTube
            • Opera - LinkedIn
            • Opera - Instagram

            © Opera Software 1995-