Git Product home page Git Product logo

Comments (6)

JohnMcLear avatar JohnMcLear commented on July 26, 2024

I agree, I will fix this when I get some spare time. My time over the next few weeks will be dedicated to core prolly..

-----Original Message-----
From: Wikinaut [mailto:[email protected]]
Sent: 12 February 2012 20:57
To: John McLear
Subject: [etherpad-lite-jquery-plugin] In etherpad.js in the iframe, better use class= instead of id= (#8)

In the case that someone embeds the same pad twice on a page, you have two iframes with the same id, which results in invalid HTML, because each id on a web page must be unique.

It is much better to use class= instead.


Reply to this email directly or view it on GitHub:
https://github.com/johnyma22/etherpad-lite-jquery-plugin/issues/8
This email and its attachments may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of the organisation from which this email originated. If you are not the intended recipient of this email and its attachments, you must take no action based upon them, nor must you copy or show them to anyone. Please contact the sender if you believe you have received this email in error. This email was sent by School Email - Safe Webmail and Hosted Email for Schools

from etherpad-lite-jquery-plugin.

Wikinaut avatar Wikinaut commented on July 26, 2024

I tried to fix this quickly today, but it appears to more difficult than expected. For example: when you embed the same pad two times on a page using class=eframe-padid-xyz , there are several ids which have the same id= value (for example id='passwordinput') in the iframe content.

Currently I do not know, if this allowed, or not, and; there are more urgent things to be fixed.
Should be tagged as "minor (low priority ) bug - to be fixed later" or something similar.

from etherpad-lite-jquery-plugin.

JohnMcLear avatar JohnMcLear commented on July 26, 2024

Why would you want to embed the same pad on a page twice?

from etherpad-lite-jquery-plugin.

Wikinaut avatar Wikinaut commented on July 26, 2024

There is not a single reason for doing that, but with the MediaWiki Extension, users could embed the pad several times. It does not make sense, and I will program a mechanism which prevents this.

But just when enbedding a pad twice intentionally, and confirming that that works, i found, that at least id= in the iframe should be unique and to use class=eframe-hash is a semi-perfect solution for that isolated problem.

As mentioned: not urgent, not severe.

from etherpad-lite-jquery-plugin.

JohnMcLear avatar JohnMcLear commented on July 26, 2024

I agree, can you please submit the fix that you wrote for that?

-----Original Message-----
From: Wikinaut [mailto:[email protected]]
Sent: 18 February 2012 17:54
To: John McLear
Subject: Re: [etherpad-lite-jquery-plugin] In etherpad.js in the iframe, better use class= instead of id= (#8)

There is not a single reason for doing that, but with the MediaWiki Extension, users could embed the pad several times. It does not make sense, and I will program a mechanism which prevents this.

But just when enbedding a pad twice intentionally, and confirming that that works, i found, that at least id= in the iframe should be unique and to use class=eframe-hash is a semi-perfect solution for that isolated problem.

As mentioned: not urgent, not severe.


Reply to this email directly or view it on GitHub:
https://github.com/johnyma22/etherpad-lite-jquery-plugin/issues/8#issuecomment-4035825
This email and its attachments may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of the organisation from which this email originated. If you are not the intended recipient of this email and its attachments, you must take no action based upon them, nor must you copy or show them to anyone. Please contact the sender if you believe you have received this email in error. This email was sent by School Email - Safe Webmail and Hosted Email for Schools

from etherpad-lite-jquery-plugin.

JohnMcLear avatar JohnMcLear commented on July 26, 2024

Note that if you set the id on the iframe it uses that as a suffix to "epframe" IE

<div id="foo"></div>
Becomes
`

<iframe id="epframefoo">....
`

from etherpad-lite-jquery-plugin.

Related Issues (13)

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.