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

Automatically generate assignments/constraints from a web page #7

Open
ryanmuller opened this issue Jan 3, 2012 · 1 comment
Open

Comments

@ryanmuller
Copy link
Owner

The rough idea is to generate all possible constraints given the html, then allow the user to choose which should be assigned. This can be tricky.

Consider:
Hello, <b>world</b>

  • Write "Hello, world"
  • Bold "world"

But this allows Hello, world, so it should have a third "Don't bold 'Hello, ' " (which might not actually be shown but should have some associated hint/warning)

Consider:

  <div style="margin-left:20px">asdf</div>
  <div>qwerty</div>
</div>

Does this generate

  • Make text "asdf" have margin 40px
  • Make text "qwerty" have margin 20px
    or
  • Make a block with margin 20px containing "asdf" and "qwerty"
  • Make text "asdf" with a margin 20px

(A difficult problem for assessment as well)

@ryanmuller
Copy link
Owner Author

An answer to the second concern may be that any solution with the same output should look the same using getComputedStyle. Which means an assessment can be done by comparing each page element to a prototype answer. However, it'd still be nice to be able to generate tasks for the student from an example.

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

1 participant