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

Markup fixes and jQuery lib upgrades #16

Closed
wants to merge 14 commits into from
Closed

Conversation

hellp
Copy link

@hellp hellp commented Apr 7, 2011

Several fixes to make deform's templates validate as correct HTML (e.g. removed non-LI elements from ULs; removed custom attributes; fixed nesting of structural widgets where LIs where omitted). To make some of this work I had to upgrade to jQuery 1.5 and thus upgraded depending libs, too.

hellp added 14 commits April 7, 2011 10:57
If you assume to be in a list you must not simply remove the tag as
that results in invalid HTML, e.g. UL > INPUT.
This make SequenceWidget and MappingWidget behave more consistent.
And: it's already stated in the docstring of Widget: "the default
mapping and sequence widgets are in this category ['structural']".
And: "Renders a sequence into a set of fields."

Plus: we get rid of the invalid LABEL element pointing to the widget's
DIV -- which is not valid HTML.
Instead of using custom (non-valid) attributes (e.g. prototype) and
a (non-valid) SPAN inside a sequence's UL to hold min/max variables,
we use HTML5 data-* attributes now.

For easy access to them (and for the hotness' sake) upgrade to
jQuery 1.5.2 and a more recent jQuery UI.
Use separate DIV for the global form error message instead of just
another LI.

Use less classes.
@mcdonc
Copy link
Member

mcdonc commented Jun 23, 2011

This set of patches appears to cause one test failure in the deformdemo tests:

======================================================================
FAIL: test_submit_success (__main__.RedirectingAjaxFormTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "deformdemo/test.py", line 2369, in test_submit_success
    self.failUnless(location.endswith('thanks.html'))
AssertionError
----------------------------------------------------------------------

Possibly due to JQuery differences? I didn't investigate. Hoping you can advise.

@ergo
Copy link
Member

ergo commented Jun 26, 2011

mark for myself to review

@sontek
Copy link
Member

sontek commented May 2, 2012

@ergo did you ever get a chance to review this? Is it still relevant?

@kiorky
Copy link
Member

kiorky commented Jul 27, 2012

Yep we need this there if it can be...
Can some take on this ? I cannot at the moment ... @mcdonc ? @sontek ?

@sontek
Copy link
Member

sontek commented Jul 28, 2012

@kiorky It doesn't merge cleanly, so I couldn't test it but its upgrading to older versions of jquery anyways so not sure if its worth it at this point even though it would have been great

@kiorky
Copy link
Member

kiorky commented Sep 21, 2012

Does anyone could help on this ? @hellp ?

@mcdonc
Copy link
Member

mcdonc commented Sep 25, 2012

Bleh, it's my fault that this never got applied. I didn't try hard enough to evaluate it when it was submitted. The templates have changed so much in the meantime that it's probably hopeless to try to apply the patches. It might be worthwhile for us to go through the diff by-eye to see if there's anything we can salvage from it.

@cguardia
Copy link
Member

We're moving to bootstrap templates and most of these issues will be fixed by the move. There are a couple that we might need to revisit, but that would be better after we merge bootstrap.

@cguardia cguardia closed this Mar 19, 2013
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

Successfully merging this pull request may close these issues.

None yet

6 participants